package com.jvm.java.lang;

import java.lang.reflect.Method;

/**
 * @Author:zxh
 * @Description:
 * @Date: 2021/3/8
 * @Modified By:
 */
public class String{
    public static void main(String[] args)throws Exception {
        System.out.println("ddd");
        Class<?> forName = Class.forName("com.jvm.java.lang.String");
        Object forNam = forName.newInstance();
        Method syso = forName.getDeclaredMethod("syso", null);
        syso.invoke(forNam,null);
    }

    public void syso(){
        System.out.println("ninhao");
    }


}
